package com.wxs.common.service;

import com.github.pagehelper.PageInfo;
import com.wxs.common.pojo.User;
import com.wxs.common.utils.DataGridModel;
import com.wxs.common.utils.DataResult;

/**
 * 用户
 * 
 * @author admin
 *
 */
public interface UserService {
	public PageInfo<User> findAllUser(int pageNum, int pageSize);

	public User selectByName(String name);

	public DataResult queryPage(String name, Boolean enabled, DataGridModel dgm);

	public int saveAdd(User user);

	public int saveEdit(User user);

	public Boolean checkName(String name, Integer id);

	public User findById(Integer id);

	public int deleteById(Integer id);

}
